export default {
    // 定义了一个名为changeTitle的mutation
    // state 当前的state
    // payload 调用mutation的时候传递的数据
    changeTitle(state, payload) {
        state.title = payload.title
    },
    changeSongInfo(state, payload) {
        state.songinfo = payload.songinfo
        state.bitrate = payload.bitrate
    },
    changeCurrentTime(state, payload) {
        state.currentTime = payload.currentTime
    },
    changeProcessTime(state, payload) {
        state.processTime = payload.processTime;
    },
    changeImgStyle(state, payload) {
        state.imgStyle = payload.imgStyle
    },
    changePlay(state, payload) {
        state.isPlay = payload.isPlay
    }
}
